import {
  createApp
} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index'
import store from './store'
import App from './App.vue'
import './CSS/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '../src/router/promission'


// createApp(App).use(ElementPlus).use(router).use(ElementPlusIconsVue).mount('#app')
const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.use(router)
app.use(store)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
};
app.mount('#app')